﻿// ***********************************************************************
// Assembly         : MVC4Portal
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="WebAPIJSonResult.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using InnovaApp.Portals.MVC4Portal.Models.WebAPIModels.JSTO;

namespace InnovaApp.Portals.MVC4Portal.Models.JSonModels
{
    /// <summary>
    /// Class WebAPIJSonModel
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class WebAPIJSonModel<T> : _WebAPIModels_Base, IWebAPIJSonResult<T> where T : _JSTO_Base
    {
        #region IInnovacallJSonResult implementation

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="WebAPIJSonModel{T}"/> is success.
        /// </summary>
        /// <value><c>true</c> if success; otherwise, <c>false</c>.</value>
        public bool success { get; set; }
        /// <summary>
        /// Gets or sets the script to execute.
        /// </summary>
        /// <value>The script to execute.</value>
        public string scriptToExecute { get; set; }
        /// <summary>
        /// Gets or sets the element to update.
        /// </summary>
        /// <value>The element to update.</value>
        public string elementToUpdate { get; set; }
        /// <summary>
        /// Gets or sets the content of the HTML.
        /// </summary>
        /// <value>The content of the HTML.</value>
        public string htmlContent { get; set; }
        /// <summary>
        /// Gets or sets the message title.
        /// </summary>
        /// <value>The message title.</value>
        public string messageTitle { get; set; }
        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        /// <value>The message.</value>
        public string message { get; set; }
        /// <summary>
        /// Gets or sets the content of the i frame.
        /// </summary>
        /// <value>The content of the i frame.</value>
        public string iFrameContent { get; set; }
        /// <summary>
        /// Gets or sets the redirection URL.
        /// </summary>
        /// <value>The redirection URL.</value>
        public string redirectionUrl { get; set; }
        /// <summary>
        /// Gets or sets the API data.
        /// </summary>
        /// <value>The API data.</value>
        public T ApiData { get; set; }
        
        #endregion
    }
}